package com.sam.gui.activity;

import android.content.Intent;
import android.os.Bundle;
import android.webkit.JavascriptInterface;

import com.sam.gui.base.BaseWebActivity;
import com.sam.ui.base.activity.BaseActivity;

/**
 * Created by Administrator on 2015-10-27.
 */
public class DoctorDetailsWebActivity extends BaseWebActivity {


    @Override
    protected void initView() {
        super.initView();
        setContentUrl("index.php?c=user&a=user_ys_view&pid="+getIntent().getExtras().getString("pid"));
    }

    @JavascriptInterface
    public void wzjlxq(){
        Intent intent = new Intent(this, DiagnosisRecordWebActivity.class);
        startActivity(intent);
    }

    @JavascriptInterface
    public void set_password(){
        Intent intent = new Intent(this, ChangePwdWebActivity.class);
        startActivity(intent);
    }
    @JavascriptInterface
    public void add_to_ys(String pid){
        Intent intent = new Intent(this, MyDoctorListWebActivity.class);
        Bundle bundle = new Bundle();
        bundle.putString("pid", pid);
        intent.putExtras(bundle);
        startActivity(intent);
        finish();
    }

    @JavascriptInterface
    public void send_ys(String pid){
        Intent intent = new Intent(this, MakeAnAppointmentWebActivity.class);
        Bundle bundle = new Bundle();
        bundle.putString("pid", pid);
        intent.putExtras(bundle);
        startActivity(intent);
        finish();
    }
    @JavascriptInterface
    public void ys_sjb(String pid){
        Intent intent = new Intent(this, DoctorScheduleWebActivity.class);
        Bundle bundle = new Bundle();
        bundle.putString("pid", pid);
        intent.putExtras(bundle);
        startActivity(intent);
        finish();
    }

    @JavascriptInterface
    public void submitSuccess(){
        finish();
    }
}
